package com.rbac.service.test;

import com.common.Result;
import com.domain.dto.test.RolePermissionDto;
import com.rbac.pojo.Permission;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PermissionService {
    /**
     * 构建树型菜单
     * @param userId 传入用户的id
     * @return 返回一个树形的菜单列表
     */
    List<Permission> getTreeMenu(Integer userId);

    Result getPermissionListAll();

    List<Permission> getUserPermissionByRoleId(Integer roleId);

    Result updateRolePermission(RolePermissionDto rolePermissionDto);
}
